package com.iplant.aps.service.po.wms;

import java.io.Serializable;
import java.util.Calendar;

/**
 * 产线领料需求明细
 *
 * @author YouWang·Peng
 * 2022-1-6 09:27:05
 */
public class WMSPickDemandItem implements Serializable {

    /**
     * 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public int ID = 0;
    /**
     * 领料需求单ID
     */
    public int DemandID = 0;
    /**
     * 需求单号
     */
    public String DemandNo = "";
    public String ProductNo = "";
    public String LineName = "";
    public String CustomerName = "";
    public String PartNo = "";
    public String PartName = "";
    public String PartCode = "";
    /**
     * 物料ID
     */
    public int MaterialID = 0;
    /**
     * 物料编码
     */
    public String MaterialNo = "";
    /**
     * 物料名称
     */
    public String MaterialName = "";
    /**
     * 数量
     */
    public double FQTY = 0.0;
    /**
     * WBS元素
     */
    public String WBSNo = "";
    /**
     * 工位ID
     */
    public int PartID = 0;
    /**
     * 工序ID
     */
    public int PartPointID = 0;
    /**
     * 工序编码
     */
    public String PartPointCode = "";
    /**
     * 工序名称
     */
    public String PartPointName = "";
    /**
     * 行号
     */
    public String RowNo = "";
    /**
     * 配套标记
     */
    public String GroupFlag = "";
    /**
     * 必换偶换
     */
    public int ReplaceType = 0;
    /**
     * 必换偶换
     */
    public String ReplaceTypeText = "";
    /**
     * 必修偶修
     */
    public int OutSourceType = 0;
    /**
     * 必修偶修
     */
    public String OutSourceTypeText = "";
    /**
     * 评估类型
     */
    public String AssessmentType = "";
    /**
     * 齐套标记
     */
    public String KittingFlag = "";
    /**
     * 状态
     */
    public int Status = 0;
    /**
     * 子项状态
     */
    public String StatusText = "";
    /**
     * 装车时刻
     */
    public Calendar LoadingTime = Calendar.getInstance();
    /**
     * 装车时刻
     */
    public String LoadingTimeText = "";
    /**
     * 工序任务ID
     */
    public int TaskStepID = 0;
    /**
     * 物料类型ID
     */
    public int MaterialType = 0;
    /**
     * 物料类型名称
     */
    public String MaterialTypeText = "";
    /**
     * 接收时刻
     */
    public Calendar ReceiveTime = Calendar.getInstance();
    /**
     * 接收时刻
     */
    public String ReceiveTimeText = "";
    /**
     * WMS批次号
     */
    public String BatchNumber = "";
    /**
     * 物料单位
     */
    public String UnitText = "";

    // 辅助属性
    public double BOMNumber = 0.0;

    public int OrderID = 0;
    /**
     * 库存地点
     */
    public String Stock = "";
    /**
     * 供应商
     */
    public String Supplier = "";
    /**
     * 生产厂家/制造商
     */
    public String ProductName = "";
    /**
     * 序列号/铁总唯一码
     */
    public String SerialNo = "";
    /**
     * 生产日期
     */
    public Calendar ProductTime = Calendar.getInstance();
    public int BOMItemNum = 0;

    /**
     * 已拣货数量
     */
    public double PickedNumber = 0.0;
    /**
     * 是否确认
     */
    public int IsConfirmed = 0;

    /**
     * 分拣信息
     */
    public int SorterID = 0;
    public String Sorter = "";
    public String SorterNo = "";

    /**
     * 辅助属性：二维码
     */
    public String QRCode = "";

    /**
     * 库位信息
     */
    public String StockPosition = "";

    /**
     * 辅助属性
     */
    public WMSPickDemand WMSPickDemand = new WMSPickDemand();
    /**
     * 待交接数
     */
    public double ToHandFQTY = 0.0;

    /**
     * 明细行删除标记
     */
    public int DeleteFlag = 0;
    /**
     * 明细行修改标记
     */
    public int UpdateFlag = 0;
    /**
     * 明细行修改错误内容
     */
    public String UpdateErrorMsg = "";

    //辅助属性
    /**
     * 配送单状态
     */
    public int ParentStatus = 0;

    /**
     * 委外拆修登记ID
     */
    public int OutSourceMaterialID = 0;

    /**
     * 是否原拆原装（来源未知）
     */
    public String IsOriDis = "否";

    //辅助属性
    /**
     * 是否客供物料
     */
    public int IsCustomerMaterial=0;

    public WMSPickDemandItem() {
        super();
    }

    public WMSPickDemandItem(int iD, int demandID, int materialID, String materialNo, String materialName, double fQTY,
                             String wBSNo, int partPointID, String partPointCode, String partPointName, String rowNo,
                             String groupFlag,
                             int replaceType, String replaceTypeText, int outSourceType, String outSourceTypeText,
                             String assessmentType,
                             String kittingFlag, Calendar loadingTime, int wPartID, int wMaterialType,
                             double wBOMNumber,
                             int wBOMItemNum) {
        super();
        ID = iD;
        DemandID = demandID;
        MaterialID = materialID;
        MaterialNo = materialNo;
        MaterialName = materialName;
        FQTY = fQTY;
        WBSNo = wBSNo;
        PartPointID = partPointID;
        PartPointCode = partPointCode;
        PartPointName = partPointName;
        RowNo = rowNo;
        GroupFlag = groupFlag;
        ReplaceType = replaceType;
        ReplaceTypeText = replaceTypeText;
        OutSourceType = outSourceType;
        OutSourceTypeText = outSourceTypeText;
        AssessmentType = assessmentType;
        KittingFlag = kittingFlag;
        LoadingTime = loadingTime;
        PartID = wPartID;
        MaterialType = wMaterialType;
        BOMNumber = wBOMNumber;
        Calendar wBaseTime = Calendar.getInstance();
        wBaseTime.set(2000, 0, 1, 0, 0, 0);
        ProductTime = wBaseTime;
        BOMItemNum = wBOMItemNum;
    }


    public double getToHandFQTY() {
        return ToHandFQTY;
    }

    public void setToHandFQTY(double toHandFQTY) {
        ToHandFQTY = toHandFQTY;
    }

    public com.iplant.aps.service.po.wms.WMSPickDemand getWMSPickDemand() {
        return WMSPickDemand;
    }

    public void setWMSPickDemand(com.iplant.aps.service.po.wms.WMSPickDemand WMSPickDemand) {
        this.WMSPickDemand = WMSPickDemand;
    }

    public int getParentStatus() {
        return ParentStatus;
    }

    public void setParentStatus(int parentStatus) {
        ParentStatus = parentStatus;
    }

    public int getID() {
        return ID;
    }

    public void setID(int iD) {
        ID = iD;
    }

    public int getDemandID() {
        return DemandID;
    }

    public void setDemandID(int demandID) {
        DemandID = demandID;
    }

    public int getMaterialID() {
        return MaterialID;
    }

    public void setMaterialID(int materialID) {
        MaterialID = materialID;
    }

    public String getMaterialNo() {
        return MaterialNo;
    }

    public void setMaterialNo(String materialNo) {
        MaterialNo = materialNo;
    }

    public String getMaterialName() {
        return MaterialName;
    }

    public void setMaterialName(String materialName) {
        MaterialName = materialName;
    }

    public double getFQTY() {
        return FQTY;
    }

    public void setFQTY(double fQTY) {
        FQTY = fQTY;
    }

    public String getWBSNo() {
        return WBSNo;
    }

    public void setWBSNo(String wBSNo) {
        WBSNo = wBSNo;
    }

    public int getPartPointID() {
        return PartPointID;
    }

    public void setPartPointID(int partPointID) {
        PartPointID = partPointID;
    }

    public String getPartPointCode() {
        return PartPointCode;
    }

    public void setPartPointCode(String partPointCode) {
        PartPointCode = partPointCode;
    }

    public String getPartPointName() {
        return PartPointName;
    }

    public void setPartPointName(String partPointName) {
        PartPointName = partPointName;
    }

    public String getRowNo() {
        return RowNo;
    }

    public void setRowNo(String rowNo) {
        RowNo = rowNo;
    }

    public String getGroupFlag() {
        return GroupFlag;
    }

    public void setGroupFlag(String groupFlag) {
        GroupFlag = groupFlag;
    }

    public int getReplaceType() {
        return ReplaceType;
    }

    public void setReplaceType(int replaceType) {
        ReplaceType = replaceType;
    }

    public String getReplaceTypeText() {
        return ReplaceTypeText;
    }

    public void setReplaceTypeText(String replaceTypeText) {
        ReplaceTypeText = replaceTypeText;
    }

    public int getOutSourceType() {
        return OutSourceType;
    }

    public void setOutSourceType(int outSourceType) {
        OutSourceType = outSourceType;
    }

    public String getOutSourceTypeText() {
        return OutSourceTypeText;
    }

    public void setOutSourceTypeText(String outSourceTypeText) {
        OutSourceTypeText = outSourceTypeText;
    }

    public String getDemandNo() {
        return DemandNo;
    }

    public void setDemandNo(String demandNo) {
        DemandNo = demandNo;
    }

    public String getProductNo() {
        return ProductNo;
    }

    public void setProductNo(String productNo) {
        ProductNo = productNo;
    }

    public String getLineName() {
        return LineName;
    }

    public void setLineName(String lineName) {
        LineName = lineName;
    }

    public String getCustomerName() {
        return CustomerName;
    }

    public void setCustomerName(String customerName) {
        CustomerName = customerName;
    }

    public String getPartName() {
        return PartName;
    }

    public void setPartName(String partName) {
        PartName = partName;
    }

    public String getPartNo() {
        return PartNo;
    }

    public void setPartNo(String partNo) {
        PartNo = partNo;
    }

    public String getAssessmentType() {
        return AssessmentType;
    }

    public void setAssessmentType(String assessmentType) {
        AssessmentType = assessmentType;
    }

    public String getKittingFlag() {
        return KittingFlag;
    }

    public void setKittingFlag(String kittingFlag) {
        KittingFlag = kittingFlag;
    }

    public int getStatus() {
        return Status;
    }

    public void setStatus(int status) {
        Status = status;
    }

    public Calendar getLoadingTime() {
        return LoadingTime;
    }

    public void setLoadingTime(Calendar loadingTime) {
        LoadingTime = loadingTime;
    }

    public String getStatusText() {
        return StatusText;
    }

    public void setStatusText(String statusText) {
        StatusText = statusText;
    }

    public String getLoadingTimeText() {
        return LoadingTimeText;
    }

    public void setLoadingTimeText(String loadingTimeText) {
        LoadingTimeText = loadingTimeText;
    }

    public int getTaskStepID() {
        return TaskStepID;
    }

    public void setTaskStepID(int taskStepID) {
        TaskStepID = taskStepID;
    }

    public int getPartID() {
        return PartID;
    }

    public void setPartID(int partID) {
        PartID = partID;
    }

    public int getMaterialType() {
        return MaterialType;
    }

    public void setMaterialType(int materialType) {
        MaterialType = materialType;
    }

    public String getMaterialTypeText() {
        return MaterialTypeText;
    }

    public void setMaterialTypeText(String materialTypeText) {
        MaterialTypeText = materialTypeText;
    }

    public Calendar getReceiveTime() {
        return ReceiveTime;
    }

    public void setReceiveTime(Calendar receiveTime) {
        ReceiveTime = receiveTime;
    }

    public String getReceiveTimeText() {
        return ReceiveTimeText;
    }

    public void setReceiveTimeText(String receiveTimeText) {
        ReceiveTimeText = receiveTimeText;
    }

    public double getBOMNumber() {
        return BOMNumber;
    }

    public void setBOMNumber(double bOMNumber) {
        BOMNumber = bOMNumber;
    }

    public int getOrderID() {
        return OrderID;
    }

    public void setOrderID(int orderID) {
        OrderID = orderID;
    }

    public String getBatchNumber() {
        return BatchNumber;
    }

    public void setBatchNumber(String batchNumber) {
        BatchNumber = batchNumber;
    }

    public String getUnitText() {
        return UnitText;
    }

    public void setUnitText(String unitText) {
        UnitText = unitText;
    }

    public String getStock() {
        return Stock;
    }

    public String getSupplier() {
        return Supplier;
    }

    public String getProductName() {
        return ProductName;
    }

    public String getSerialNo() {
        return SerialNo;
    }

    public void setStock(String stock) {
        Stock = stock;
    }

    public void setSupplier(String supplier) {
        Supplier = supplier;
    }

    public void setProductName(String productName) {
        ProductName = productName;
    }

    public void setSerialNo(String serialNo) {
        SerialNo = serialNo;
    }

    public Calendar getProductTime() {
        return ProductTime;
    }

    public void setProductTime(Calendar productTime) {
        ProductTime = productTime;
    }

    public int getBOMItemNum() {
        return BOMItemNum;
    }

    public void setBOMItemNum(int bOMItemNum) {
        BOMItemNum = bOMItemNum;
    }

    public String getPartCode() {
        return PartCode;
    }

    public double getPickedNumber() {
        return PickedNumber;
    }

    public void setPickedNumber(double pickedNumber) {
        PickedNumber = pickedNumber;
    }

    public int getIsConfirmed() {
        return IsConfirmed;
    }

    public void setIsConfirmed(int isConfirmed) {
        IsConfirmed = isConfirmed;
    }

    public void setPartCode(String partCode) {
        PartCode = partCode;
    }

    public int getSorterID() {
        return SorterID;
    }

    public void setSorterID(int sorterID) {
        SorterID = sorterID;
    }

    public String getSorter() {
        return Sorter;
    }

    public void setSorter(String sorter) {
        Sorter = sorter;
    }

    public String getSorterNo() {
        return SorterNo;
    }

    public void setSorterNo(String sorterNo) {
        SorterNo = sorterNo;
    }

    public String getQRCode() {
        return QRCode;
    }

    public void setQRCode(String QRCode) {
        this.QRCode = QRCode;
    }

    public String getStockPosition() {
        return StockPosition;
    }

    public void setStockPosition(String stockPosition) {
        StockPosition = stockPosition;
    }

    public int getDeleteFlag() {
        return DeleteFlag;
    }

    public void setDeleteFlag(int deleteFlag) {
        DeleteFlag = deleteFlag;
    }

    public int getUpdateFlag() {
        return UpdateFlag;
    }

    public void setUpdateFlag(int updateFlag) {
        UpdateFlag = updateFlag;
    }

    public String getUpdateErrorMsg() {
        return UpdateErrorMsg;
    }

    public void setUpdateErrorMsg(String updateErrorMsg) {
        UpdateErrorMsg = updateErrorMsg;
    }

    public int getOutSourceMaterialID() {
        return OutSourceMaterialID;
    }

    public void setOutSourceMaterialID(int outSourceMaterialID) {
        OutSourceMaterialID = outSourceMaterialID;
    }

    public String getIsOriDis() {
        return IsOriDis;
    }

    public void setIsOriDis(String isOriDis) {
        IsOriDis = isOriDis;
    }

    public int getIsCustomerMaterial() {
        return IsCustomerMaterial;
    }

    public void setIsCustomerMaterial(int isCustomerMaterial) {
        IsCustomerMaterial = isCustomerMaterial;
    }
}
